package com.my.myTradeData;

import java.io.Serializable;
import java.util.Date;

public class DayData implements Serializable {
	private String name;

	public String getSinaCode() {
		return sinaCode;
	}

	public void setSinaCode(String sinaCode) {
		this.sinaCode = sinaCode;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private double high;
	private double low;
	private double open;
	private double close;
	private String sinaCode;
	private int id;
	private Date dataDate;
	private int vol;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public double getHigh() {
		return high;
	}

	public void setHigh(double high) {
		this.high = high;
	}

	public double getLow() {
		return low;
	}

	public void setLow(double low) {
		this.low = low;
	}

	public double getOpen() {
		return open;
	}

	public void setOpen(double open) {

		this.open = open;
	}

	public double getClose() {
		return close;
	}

	public void setClose(double close) {
		this.close = close;
	}

	public Date getDataDate() {
		return dataDate;
	}

	public void setDataDate(Date dataDate) {
		this.dataDate = dataDate;
	}

	public int getVol() {
		return vol;
	}

	public void setVol(int vol) {
		this.vol = vol;
	}

	public boolean dataCheck() {
		if (high == 0 || low == 0 || open == 0 || close == 0 || vol == 0) {
			return false;
		} else {
			return true;
		}
	}
}
